<?php


namespace App\Http\Controllers\Api;
use App\Models\Banner;
use Dingo\Api\Http\Request;

class BannerController extends BaseController
{
    /**
     * 列表
     * @param Request $request
     * @return mixed
     */
    public function index(Request $request) {
        $users = Banner::orderBy('sort', 'desc')->orderBy("id", "desc")
            ->paginate(\request('per_page', 10));
        return $this->paginate($users);
    }

}

